Fix UrlCompare method.

With no component specified, parse_url returns an associative array with keys: host, path, scheme etc.