TIMOB-16154: Skip gzip if content is empty

https://jira.appcelerator.org/browse/TIMOB-16154

Test case in Jira.