compress/flate: fix infinite loop on malformed data

Test using compress/gzip, because that's how the
data arrived.

Fixes issue 6550.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/14441051