fix($anchorScroll): don't scroll to top when initializing and location h...

...ash is empty

Closes #8848