Fix assertion error during repair

patch by slebresne; reviewed by driftx for CASSANDRA-5801