Fix NPE when <application> declaration is not included

Resolves InfinitumFramework/Infinitum-Core#18.