Fix for possible issue when tag removed in the same time as task is updated and this tag is added (concurrent tag/task modification)