Fixes ReferentialText not to remove paragraphs that only have elements without any text.