Bug 22475: REGRESSION: Async XMLHttpRequest never finishes on nonexistent files anymore

In both cases, readyState 4 should be reached. Because one of the requests is synchronous and for a file: URL, only a single error handler should be invoked.