JBIDE-16493 CordovaSim: Fixing native crashes after web engine switching