Fix isCrossDomain check for relative URLs in IE7