Not all errors have reasons; fix crash in error handler.