[TIMOB-17133] Try gzip if contentLength is unknown (-1)

https://jira.appcelerator.org/browse/TIMOB-17133