(v1.02) Improved error handling for certain XHR error scenarios.

Fixed known issue of reporting error message of ‘0’ for
ERR_NETWORK_CHANGED and ERR_TIMED_OUT errors, that fire the xhr onError
event.

Misc cleanup.