title: $window.history.pushState throws error when $location present
body: <p>Here is a plunkr that shows my problem: <a href="http://plnkr.co/edit/c0AEXBXAHz4ZqH4kIXyN" rel="nofollow">http://plnkr.co/edit/c0AEXBXAHz4ZqH4kIXyN</a>. $window.history.pushState throws an error when $location is present in the dependency injector and you pass a non-empty string as the new url.</p>