Link: Validate the selected text for title

It can potentially save api hits.
Text selections, that cannot be a valid link is currently throwing
js error

Change-Id: I1f084039ef7d475a7d2cf184197a79ba71ccd1bc