Fix a bug in the conversion to ErrorOr.