Slightly simplify detection of end of compressed data in xan_unpack