fixed function value accumulation bug when using timechart's by-clause
raise illegal state exception when jython script does not exist