AutoDoc: fix template checking in load_html_template()