Fixes ReferentialText#toPublishes sometimes removing an element by itself that looks like a paragraph if there weren’t any accompanying text.