fix NPE
patch by Benedict Elliott Smith; reviewed by jbellis for CASSANDRA-6671