AVRO-541. Fix sporadic corruption when appending a compressed file to an uncompressed file. Contributed by scottcarey.