Fix regression from fix for 568,
- when the last value of an attribute was explicitely deleted the attribute was not moved to the deleted attributes on a replication consumer
- when a value of a single valued attr is deleted, check if there is no more added value before moving to deleted attrs