Fix #799: Make PhantomJS runner fail if JS code fails