#4533 fixed htmlpage extension check
Merge pull request #4534 from dotCMS/issue-4533-all-pages-404

#4533 fixed htmlpage extension check