correct processing of the target when for anchors with hash-only href
Issue 1537
Authored by: rbri 2013-08-29
Parent: [r8458]
Child: [r8460]