Fixed order of operations issue that was causing FlxSubStates to crash on close.
Merge branch 'dev' of https://github.com/HaxeFlixel/flixel into dev