prevent empty domain in page object