Handling exception UnexpectedAlertOpen thrown when browser displays an alert (blocking any calls)