renamed do/g_tag_detectot to do/check_for_bad_template_renders and made changes to it