Properly handle cookies that specify a sub-domain but the URL contains
the master domain itself.