Fixes #535: application cannot start in tomcat if no custom app is prese...

...nt in deploy