LUN-1741: Fix removing all content when the text ends with '<br>'