XAppTemplates.XWikiApplicationClassTemplate throw and print exception when viewing it. This is because it is trying to get application with appname=null