Added failure condition to the HTML report when a javascript exception is caught