Issue #2325385 by dawehner: Fixed Ensure that the error handler does not throw exception itself.