Bug 62326: Stop accepting unexpected alerts

This change implements the experiment in bug 62326 by not retrying javascript
when an unexpected alert caused an exception.

Testing done:

Ran againt a script that left an alert open prior to javascript execution.