Worked around exception when using purely scripted anchors
(i.e. those without proper HREF)