Replication manager: don't update doc if new state == current state This is to avoid unncessary updates.