[TIMOB-17704] XHR onreadystatechange called multiple times

Fixes [TIMOB-17704](https://jira.appcelerator.org/browse/TIMOB-17704)