(Bug 41289) Fix spurious <li> nodes using wikitext list syntax.

Fixed spurious <li> nodes that are generated with the <li>
list hack. For example:

    * <li class="foo"> test
    * another test

should only produce two <li> nodes.

Did roundtrip testing with the original page referenced in the bug
report: [[en:Line of succession to the British throne]]

Change-Id: Id1821038d3ad930f42630e60d793835a8316631e
Merge "(Bug 41289) Fix spurious <li> nodes using wikitext list syntax."