handle webdriver's StaleElementReferenceException during getLinks()