Adding defensive try/catch for IE8 which raises an exception otherwise.

This workaround will be in place till we get a resolution upstream for
CodeMirror 3.  https://github.com/marijnh/CodeMirror/issues/1200