MDL-58056 behat: Catch webdriver exception if element removed
MDL-58056 behat: Catch webdriver exception if element removed

While checking for element visibility, ensure
that element is there in dom

dilawar/moodle