Added checking if value is not null while processing reference column during update