[BUG #7511] Fix empty tags in the HTML string