Issue #22614: Don't try to update deleted text.  Patch by Serhiy Storchaka.
Merge with 3.4 #22614