Error: Cannot read property 'isCallstatsEnabled' of undefined

Hello! I’m using Jitsi-meet.
There is one case when the user can’t finish the call. The user can press the “Leave” button (the red button) before the Jitsi conference is fully initialized (very quickly when the call opens). And then there is an error in console and the call is continues.

Does anyone know how to prevent this error? Thanks in advance