fix($location/$browser): prevent infinite digests when only modifying the hash of a URL

It was cut and paste from the original :-( :-(