Only try to open link if there's a link.