Catch EOFError when reading invalid gzip files
Merge pull request #707 from astrofrog/utils/fix-invalid-gzip

Test failure on upcoming Ubuntu 13.04 release