Defer exceptions thrown on xhr.send() and setting xhr.withCredentials

This appears to be a bug in FireFox and Chrome as the exception
complains about the readyState not being 1 although it is. Catching the
exception seems to be a viable work around.