fix angular 1.1.5 location regression (see issue https://github.com/angular/angular.js/issues/2762)