Prevent crash in Android's network manager if Core enters foreground/background before it is started
Fix for https://mantis.linphone.org/view.php?id=9157