FlxGame.onResize(): Additional null checks to prevent errors on mobile