Fix for exception in ActivityManager when JS-based splash screen is shut down

This bug only happens when there is more than one JS-based splash screen in the same app.