Follow redirect for Main Page check if enabled

Impelement isMainPage() to follow redirect before check for if requested
page is main page, when redirects are allowed by request.

Bug: 66294
Change-Id: I57315be2100a18d12e75f0daac3c3f97cdbe0868
Merge "Follow redirect for Main Page check if enabled"