Make the error case work more reliably in IE8-10

This makes IE8-10 properly detect the "didn't download a file with the cookie" case and make sure the full content is grabbed.