CAAERS-6912 - fixing a corner case, exception when actual replaced value is NULL.