Add enforcement check for <application> element in <manifest> which is declared as "must contain" here:-

http://developer.android.com/guide/topics/manifest/manifest-element.html

This fails fast and prevents the cryptic NPE when parsing application meta data when there is no application.