Ensure that we don't treat an Error.cause which is 'undefined'
as a true cause, or wrapped error.