Fixed empty check in gzfile_buffer

Bugfix for #284