Updates the Preloader to work again, safely

This was made possible by the new update Joshua did to the ApplicationMain.hx. No more stuckness, hopefully for good now. Fixes https://github.com/HaxeFlixel/flixel/issues/929.

Can you bring back the preloader on the project.xml? it seems a little redundant for a pull request...