#4497: Fixed unable to create link when any link is selected.