EEditorWidget: Fix parsing of html text into paragraphs

Sometimes there could be spaces before the BR element.
EEditorWidget: Create paragraphs only when we have something to put there
EEditorWidget: Avoid unneeded whitespaces when generating plain text message