Only click links if they exist

Some of our keyboard shortcuts assumed that a link was available to
click. If there was not a link, an error would be logged along the lines
of "Cannot call method 'click' of undefined". This commit prevents this
error.

Change-Id: I6879f504eec6cb09ec14456bb79f5241d4de6f5e