Patch $browser for compatibility with Angular 1.3 $location changes