Fixed incorrect empty check for gzfile_buffer