Worked around angular $location bug.

See angular/angular.js#2833