Fixed a bug where error handlers were invoked when they shouldn't be. Arity mismatch.