Fixes the Null error in Haxe 3.1+ when using a FlxAtlas and compiling to a cpp target.
Merge pull request #949 from mrcdk/null_crash_flxatlas_haxe_3.1

Fixes the Null error in Haxe 3.1+ when using a FlxAtlas