Fix bugs for 0, and textonly

Fixes some issues in LaTeXML-driver for special cases if
* input $0$
* input is text only

Change-Id: Ic8897ef6dec09bac7fd0a48d84200fa7178bd001