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