Currently the math extension assumes, that everything that is valid tex, i.e. status code '+' from texvcjs can be rendered.
However, in T134652 a case was discoverer, where this assumption is not true. Thus the exception message form the Math extension is inaccurate in that case.
Make empty input return status code 'S' rather than '' and return a reasonable error string (empty math input not allowed).