Avoid PHP warnings for XmlParser::getHtmlDocument()