Fix potential ClassCastException in HintedHandoffManager

patch by slebresne; reviewed by benedict for CASSANDRA-7284