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

And compiling to a cpp target.

It seems to be a Haxe 3.1+ compiler bug, but in the mean time this fixes it. The same error can't be reproduced in Haxe 3.0.