Error: Call to undefined method Joomla\CMS\Document\RawDocument::isHtml5(): Call to a member function getType() on null