fix error message being sent twice on ScriptParseException