Wrap MathJax Queue calls to catch error when LO running offline

MathJax won't work offline
- See John Smiths fix on xenith.js, propagate this to
  site/common/js/application.js and the quiz model of the xerte Nottingham
  template.