Catch mathjax errors