Fix NPE when <application> declaration is not included.