Apparenly selenium throws WebDriverException when a JS call fails...

:D