Rescue from NoMethodError when trying to switch to an alert
and the driver is not a javascript driver