Fix NPE in cas operations

patch by slebresne; reviewed by jbellis for CASSANDRA-5925