In case of StaleElementReferenceException, refresh the browser

Occasionnaly, the function ``is_text_present`` may throw a StaleElementReferenceException due to a DOM change. This PR catches the exception and is issuing a browser refresh.