Resources.loadAll trigger callback even if there are no resource to load
Fixes bug that calls Application.prepare twice