Make textReplace edits work for a text node that's the only child of its parent