#6806 added validation message in ContentletAPI for htmlpages