to_html_document_tree was passing (1) parameter to a method with (0) parameters