Fix AJAX error reporting on IE8

Internet Explorer's cross-domain security checks mean that we will get
an exception if we attempt access anything on an XmlHttpRequest object
which was blocked.