fix($location): prevent redirects on url change in <=IE9

Fixes #9235 

Also affects 1.2.25 .