Fix PR6750. Don't try to merge a DomainValue with itself.