Handle an exception from cx.evaluate_script more gracefully.