Handle non-block tags after EOL in the list handler.

* The following wikitext wasn't being parsed and RTed properly.
---
<small>
* a
</small>
---
  The small-tag was being closed inside the list rather than
  outside the list which messed with RT output.

* Fixed the onAny list handler to break the if-else chain to a
  series of if-checks so that the previous check could fall-through
  to other tests in some cases.

* No change in parser tests (TODO: Add above test)

* Fixes RTing of en:Molecular sentence.

Change-Id: I1cdeef6d4e2a8475fba5f6a59290d4ac64cb5847