fixed issue #3051
fixed regression on function execution, introduced with last optimization (script engine pooling): a function could not be executed twice, second time it threw an exception
Merge branch 'develop' of https://github.com/orientechnologies/orientdb into develop