closed #3291: XMLHttpRequest.status needs to be assigned even when connection fails.
Merge pull request #4807 from dumganhar/iss3291-xmlhttprequest-error-fix-develop

closed #3291: XMLHttpRequest.status needs to be assigned even when connection fails.