Created by: merijn
If a user has disabled data storage, then accessing "window.sessionStorage" for the typeof throws a SecurityError, stopping MathJax from rendering. The solution is to simply wrap the access to window.sessioStorage in a try/catch and return "undefined" if it throws an exception.