Fixed by better return type in getHyperlinkTarget.