ensure calling the callback if the delete command involved replication
try setting the value only if there is an actual one