Fix for trailing slash added when executing functions. It causes server to pass an extra (null) parameter to OFunction being called. The JavaScript engine doesn't mind since JavaScript is quite relaxed about additional parameters but the Groovy engine expects function calls to match the number of arguments being passed (like Java)