Fixes a crash that occurred when attempting to cast the result of OkHttpFactory.open() to a javax.net.ssl.HttpsURLConnection, resulting in a java.lang.ClassCastException
Resolves a crashing java.lang.NullPointerException when the app is brought from background to foreground in a specific scenario