Minor performance improvement to TemplateUtil.