Make sure the link is there before trying to click it

Fixes: Element is not currently visible and so may not be interacted
with (Selenium::WebDriver::Error::ElementNotVisibleError)

Change-Id: I478adec5f48d3aa484e00573ca22302fa6909602