Fix ISE thrown by UPI.Serializer.hasNext() for some SELECT queries
Fix ISE thrown by UPI.Serializer.hasNext() for some SELECT queries

patch by Aleksey Yeschenko; reviewed by Sam Tunnicliffe for
CASSANDRA-13911

blerer/cassandra-dtest,snazy/cassandra-dtest,spodkowinski/cassandra-dtest,aweisberg/cassandra-dtest,beobal/cassandra-dtest,stef1927/cassandra-dtest,pauloricardomg/cassandra-dtest,blerer/cassandra-dtest,beobal/cassandra-dtest,pcmanus/cassandra-dtest,aweisberg/cassandra-dtest,snazy/cassandra-dtest,spodkowinski/cassandra-dtest,bdeggleston/cassandra-dtest,iamaleksey/cassandra-dtest,pauloricardomg/cassandra-dtest,bdeggleston/cassandra-dtest,iamaleksey/cassandra-dtest,stef1927/cassandra-dtest