Fix caret rendering in several circumstances... (howling-mad)

... such as empty paragraphs, void elements and end of paragraphs.