Attempt to update a deleted row

In certain circumstances there is an error complaining about a nonexistent row when one is getting deleted.The row should be deleted with no errors.

Analysis: Due to multiple causes an update can be started it can happen that there is an update-triggering event dispatched while a delete operation is already running. The delete operation result usually contains an instruction to remove the row from the deleting data table, including the data about dirty row values, specifically changed fields. If a field value is changed and an update-triggeing event is dispatched while a delete operation on that field’s row is already running, this might cause an update to be started when the row has already been deleted, which results to an error.

Another PR fixes this as these two were worked on simultaneously and it turned out they share significant amout of code: