CB-7261 Fix setNativeToJsBridgeMode sometimes crashing when switching to ONLINE_EVENT