Fix NullReferenceException in Uri.Compare when only one of the Uris is null