Fix validation with multiple CONTAINS clauses

patch by blerer; reviewed by slebresne for CASSANDRA-8131