fix: handle browser script failure and put the error to browser report
fix: handle browser script failure and put the error to browser report

Thix fixes the cases when an exception occurs during javascript execution.
Report for the failed browser will be created and will contain the `error`
tag with console output content. For now console output is not duplicated in
all browser reports.

sethmcl/karma-junit-reporter,budde377/karma-junit-reporter,thescientist13/karma-junit-reporter,tux4/karma-junit-reporter,darksmile/karma-junit-reporter,mozimos/karma-junit-reporter,existentialism/karma-junit-reporter,killercentury/karma-junit-reporter,karma-runner/karma-junit-reporter,janeklb/karma-junit-reporter,alexander-alvarez/karma-junit-reporter,SimenB/karma-junit-reporter,robrich/karma-junit-reporter,patrot/karma-junit-test-spec-formatter,StoneCypher/karma-junit-reporter,adriaanthomas/karma-junit-reporter,patrot/karma-junit-reporter