Make default arity 1.

Incorrect default arity, was zero, is now one.

Fixed a equality comaprison with `undefined`.

Fixed the condition that excludes `invoke`.

Updated invocation of subsequent function when that function is an error
handler.