Added handling for EOF reading error in gzipped content.