throw error when html_dependencies found in non-html document