Prevent giant stacktraces from bad math tags