fixup! handle misbehaving error handler

Prevent infinite recursion that happens when an error handling middleware
swallows the error and calls `next()`.