Fix regression in SSTableRewriter causing some rows to become unreadable during compaction

patch by marcus and benedict for CASSANDRA-8429