Fix crashes when using trace() or FlxG.log.add() too early