Prevent crash in Android's network manager if Core enters foreground/background before it is started
Cherry-pick de !1410 (merged)
Prevent crash in Android's network manager if Core enters foreground/background before it is started
Cherry-pick de !1410 (merged)