#4533 fixed htmlpage extension check