ScriptEngine returns error instead of stacking on top of output