Fixed deleted items in deletion of all hasManyAndBelongsTo records before update