bug fix for DomainObject compare a Transient object, will throw null exception.