Fix #13806: JSONP error handler for cross origin requests is triggered only after timeout

Fixed it similar as in jQuery 2.0.