Fix mem corruption in MergeOperator on the error path.