Avoid NPE during race between MainActivity onStop() and onReceive()?