Fix potential ClassCastException in HintedHandoffManager

patch by slebresne; reviewed by benedict for CASSANDRA-7284
Merge branch 'cassandra-2.1' into trunk