Fix: crashed emit_html on an empty ListItem
More errors handled when parsing text and math