This should now clean up the potentially empty text nodes textNode and refNode (see OpSplitParagraph in 127cd24e9b50ca795805c96c7ad8a2dac07f7879)