createLink: Revise last anchor element handling.