added exception handling to catch timeout exceptions when element is not present