making TemplateUtils.hasTemplate() a JSP function. fixes #284