fix EA-55863: creation of function with negative arity
prevent unresolved function warnings in code containing errors