Adding check for old related value, null if the record is new.