fix($location): compatibility with SVG anchors

In SVGs, the href property is a SVGAnimatedString.

Note that the href property is animatable. As such, the animVal must
be used.