issue #2826: Updating ScriptingCore.cpp. runScript small fix.