Add a check for toMathML before displaying TeX input tool