[TIMOB-12722] Moved the app.js validation after the build.pre.compile ho...

...ok is fired so that plugins like Alloy can generate it.