Fixed bug where empty list elements would result in empty LI elements without it's parent container.
Fixed bug where backspace in empty caret formated element could produce an type error exception of Gecko.