Fix assertion error when preparing query without parameters (binary protocol)
Fix assertion error when preparing query without parameters (binary protocol)

patch by Christoph Hack; reviewed by slebresne for CASSANDRA-4577

rdio/cassandra,chbatey/cassandra-1,mkjellman/cassandra,adejanovski/cassandra,sedulam/CASSANDRA-12201,bcoverston/cassandra,jasonwee/cassandra,mshuler/cassandra,michaelmior/cassandra,knifewine/cassandra,nakomis/cassandra,MasahikoSawada/cassandra,blambov/cassandra,yangzhe1991/cassandra,helena/cassandra,jeffjirsa/cassandra,ejankan/cassandra,sivikt/cassandra,GabrielNicolasAvellaneda/cassandra,pcn/cassandra-1,qinjin/mdtc-cassandra,pallavi510/cassandra,carlyeks/cassandra,bpupadhyaya/cassandra,darach/cassandra,guanxi55nba/db-improvement,rmarchei/cassandra,HidemotoNakada/cassandra-udf,yukim/cassandra,weipinghe/cassandra,aarushi12002/cassandra,sivikt/cassandra,Stratio/stratio-cassandra,heiko-braun/cassandra,jasonwee/cassandra,thelastpickle/cassandra,szhou1234/cassandra,helena/cassandra,mambocab/cassandra,exoscale/cassandra,sivikt/cassandra,pauloricardomg/cassandra,DavidHerzogTU-Berlin/cassandra,pofallon/cassandra,Instagram/cassandra,blerer/cassandra,carlyeks/cassandra,ptuckey/cassandra,wreda/cassandra,ifesdjeen/cassandra,pallavi510/cassandra,michaelsembwever/cassandra,bdeggleston/cassandra,christian-esken/cassandra,ejankan/cassandra,nakomis/cassandra,pthomaid/cassandra,jrwest/cassandra,jeffjirsa/cassandra,guanxi55nba/key-value-store,Jaumo/cassandra,tongjixianing/projects,weideng1/cassandra,mike-tr-adamson/cassandra,ejankan/cassandra,EnigmaCurry/cassandra,nutbunnies/cassandra,iburmistrov/Cassandra,dongjiaqiang/cassandra,belliottsmith/cassandra,yangzhe1991/cassandra,fengshao0907/Cassandra-Research,tjake/cassandra,jeffjirsa/cassandra,sluk3r/cassandra,vaibhi9/cassandra,bcoverston/cassandra,josh-mckenzie/cassandra,dprguiuc/Cassandra-Wasef,Imran-C/cassandra,nitsanw/cassandra,adelapena/cassandra,pallavi510/cassandra,GabrielNicolasAvellaneda/cassandra,thobbs/cassandra,adelapena/cassandra,mgmuscari/cassandra-cdh4,Jaumo/cassandra,pauloricardomg/cassandra,snazy/cassandra,sluk3r/cassandra,hengxin/cassandra,iburmistrov/Cassandra,spodkowinski/cassandra,guanxi55nba/key-value-store,ben-manes/cassandra,DavidHerzogTU-Berlin/cassandraToRun,pauloricardomg/cassandra,snazy/cassandra,whitepages/cassandra,sriki77/cassandra,DavidHerzogTU-Berlin/cassandraToRun,jasonstack/cassandra,instaclustr/cassandra,vramaswamy456/cassandra,josh-mckenzie/cassandra,yanbit/cassandra,a-buck/cassandra,darach/cassandra,scylladb/scylla-tools-java,taigetco/cassandra_read,jsanda/cassandra,rogerchina/cassandra,kgreav/cassandra,cooldoger/cassandra,mshuler/cassandra,apache/cassandra,emolsson/cassandra,Stratio/cassandra,mt0803/cassandra,guard163/cassandra,Stratio/cassandra,nlalevee/cassandra,newrelic-forks/cassandra,miguel0afd/cassandra-cqlMod,driftx/cassandra,mheffner/cassandra-1,jsanda/cassandra,vramaswamy456/cassandra,guanxi55nba/db-improvement,rogerchina/cassandra,jeffjirsa/cassandra,jbellis/cassandra,pofallon/cassandra,guard163/cassandra,matthewtt/cassandra_read,jasobrown/cassandra,kgreav/cassandra,newrelic-forks/cassandra,MasahikoSawada/cassandra,wreda/cassandra,christian-esken/cassandra,mike-tr-adamson/cassandra,asias/cassandra,qinjin/mdtc-cassandra,scylladb/scylla-tools-java,hhorii/cassandra,clohfink/cassandra,ptuckey/cassandra,bcoverston/cassandra,lalithsuresh/cassandra-c3,driftx/cassandra,EnigmaCurry/cassandra,pkdevbox/cassandra,spodkowinski/cassandra,RyanMagnusson/cassandra,heiko-braun/cassandra,tjake/cassandra,chaordic/cassandra,ollie314/cassandra,phact/cassandra,scylladb/scylla-tools-java,Bj0rnen/cassandra,jrwest/cassandra,cooldoger/cassandra,kgreav/cassandra,asias/cassandra,jkni/cassandra,rackerlabs/cloudmetrics-cassandra,DikangGu/cassandra,jsanda/cassandra,yanbit/cassandra,mashuai/Cassandra-Research,iamaleksey/cassandra,mshuler/cassandra,mheffner/cassandra-1,phact/cassandra,miguel0afd/cassandra-cqlMod,apache/cassandra,aweisberg/cassandra,mike-tr-adamson/cassandra,michaelsembwever/cassandra,thelastpickle/cassandra,dkua/cassandra,WorksApplications/cassandra,whitepages/cassandra,knifewine/cassandra,WorksApplications/cassandra,bcoverston/apache-hosted-cassandra,aarushi12002/cassandra,exoscale/cassandra,mambocab/cassandra,dprguiuc/Cassandra-Wasef,cooldoger/cassandra,rdio/cassandra,LatencyUtils/cassandra-stress2,DavidHerzogTU-Berlin/cassandra,sayanh/ViewMaintenanceSupport,aureagle/cassandra,rackerlabs/cloudmetrics-cassandra,shawnkumar/cstargraph,adejanovski/cassandra,christian-esken/cassandra,lalithsuresh/cassandra-c3,pkdevbox/cassandra,Stratio/stratio-cassandra,bpupadhyaya/cassandra,weideng1/cassandra,phact/cassandra,adelapena/cassandra,iamaleksey/cassandra,DikangGu/cassandra,bdeggleston/cassandra,aweisberg/cassandra,sayanh/ViewMaintenanceCassandra,likaiwalkman/cassandra,joesiewert/cassandra,Stratio/stratio-cassandra,rogerchina/cassandra,juiceblender/cassandra,sharvanath/cassandra,josh-mckenzie/cassandra,thelastpickle/cassandra,modempachev4/kassandra,yanbit/cassandra,chaordic/cassandra,regispl/cassandra,tommystendahl/cassandra,tjake/cassandra,mashuai/Cassandra-Research,matthewtt/cassandra_read,sbtourist/cassandra,sayanh/ViewMaintenanceSupport,ollie314/cassandra,instaclustr/cassandra,adelapena/cassandra,MasahikoSawada/cassandra,pcmanus/cassandra,weideng1/cassandra,kangkot/stratio-cassandra,WorksApplications/cassandra,michaelsembwever/cassandra,gdusbabek/cassandra,chbatey/cassandra-1,jrwest/cassandra,sbtourist/cassandra,sbtourist/cassandra,strapdata/cassandra,AtwooTM/cassandra,swps/cassandra,michaelmior/cassandra,nlalevee/cassandra,DavidHerzogTU-Berlin/cassandra,ptnapoleon/cassandra,leomrocha/cassandra,yhnishi/cassandra,sharvanath/cassandra,emolsson/cassandra,michaelmior/cassandra,asias/cassandra,guanxi55nba/db-improvement,leomrocha/cassandra,aureagle/cassandra,jasonstack/cassandra,krummas/cassandra,pkdevbox/cassandra,aboudreault/cassandra,bcoverston/apache-hosted-cassandra,dongjiaqiang/cassandra,knifewine/cassandra,fengshao0907/cassandra-1,bdeggleston/cassandra,whitepages/cassandra,Instagram/cassandra,aureagle/cassandra,yonglehou/cassandra,AtwooTM/cassandra,kangkot/stratio-cassandra,belliottsmith/cassandra,leomrocha/cassandra,fengshao0907/cassandra-1,ben-manes/cassandra,blerer/cassandra,instaclustr/cassandra,jkni/cassandra,sayanh/ViewMaintenanceCassandra,fengshao0907/cassandra-1,sedulam/CASSANDRA-12201,bcoverston/apache-hosted-cassandra,DICL/cassandra,scaledata/cassandra,qinjin/mdtc-cassandra,ifesdjeen/cassandra,sriki77/cassandra,dkua/cassandra,gdusbabek/cassandra,clohfink/cassandra,yonglehou/cassandra,lalithsuresh/cassandra-c3,jkni/cassandra,Jollyplum/cassandra,stef1927/cassandra,hhorii/cassandra,iburmistrov/Cassandra,dongjiaqiang/cassandra,project-zerus/cassandra,project-zerus/cassandra,ibmsoe/cassandra,xiongzheng/Cassandra-Research,aweisberg/cassandra,stef1927/cassandra,Instagram/cassandra,dkua/cassandra,weipinghe/cassandra,pcn/cassandra-1,mkjellman/cassandra,bmel/cassandra,chaordic/cassandra,Jollyplum/cassandra,bmel/cassandra,wreda/cassandra,yhnishi/cassandra,RyanMagnusson/cassandra,pauloricardomg/cassandra,tongjixianing/projects,taigetco/cassandra_read,strapdata/cassandra,chbatey/cassandra-1,pcn/cassandra-1,yonglehou/cassandra,JeremiahDJordan/cassandra,heiko-braun/cassandra,cooldoger/cassandra,vramaswamy456/cassandra,beobal/cassandra,caidongyun/cassandra,codefollower/Cassandra-Research,EnigmaCurry/cassandra,mashuai/Cassandra-Research,likaiwalkman/cassandra,szhou1234/cassandra,tommystendahl/cassandra,sharvanath/cassandra,nvoron23/cassandra,nitsanw/cassandra,guanxi55nba/key-value-store,krummas/cassandra,spodkowinski/cassandra,modempachev4/kassandra,jbellis/cassandra,modempachev4/kassandra,ibmsoe/cassandra,jeromatron/cassandra,sluk3r/cassandra,jbellis/cassandra,gdusbabek/cassandra,codefollower/Cassandra-Research,aarushi12002/cassandra,nlalevee/cassandra,JeremiahDJordan/cassandra,tommystendahl/cassandra,Imran-C/cassandra,guard163/cassandra,swps/cassandra,Bj0rnen/cassandra,bcoverston/cassandra,tongjixianing/projects,stef1927/cassandra,jeromatron/cassandra,boneill42/cassandra,ptuckey/cassandra,Stratio/cassandra,shawnkumar/cstargraph,kangkot/stratio-cassandra,beobal/cassandra,DikangGu/cassandra,yukim/cassandra,sayanh/ViewMaintenanceCassandra,aweisberg/cassandra,snazy/cassandra,yukim/cassandra,mshuler/cassandra,matthewtt/cassandra_read,szhou1234/cassandra,HidemotoNakada/cassandra-udf,hengxin/cassandra,thelastpickle/cassandra,kangkot/stratio-cassandra,a-buck/cassandra,regispl/cassandra,pcmanus/cassandra,darach/cassandra,jrwest/cassandra,clohfink/cassandra,xiongzheng/Cassandra-Research,macintoshio/cassandra,exoscale/cassandra,hengxin/cassandra,xiongzheng/Cassandra-Research,fengshao0907/Cassandra-Research,Imran-C/cassandra,vaibhi9/cassandra,JeremiahDJordan/cassandra,LatencyUtils/cassandra-stress2,project-zerus/cassandra,bpupadhyaya/cassandra,juiceblender/cassandra,stef1927/cassandra,Jaumo/cassandra,driftx/cassandra,blerer/cassandra,pthomaid/cassandra,macintoshio/cassandra,fengshao0907/Cassandra-Research,bmel/cassandra,ifesdjeen/cassandra,tjake/cassandra,boneill42/cassandra,pcmanus/cassandra,newrelic-forks/cassandra,josh-mckenzie/cassandra,GabrielNicolasAvellaneda/cassandra,ptnapoleon/cassandra,caidongyun/cassandra,yukim/cassandra,scaledata/cassandra,beobal/cassandra,carlyeks/cassandra,mkjellman/cassandra,apache/cassandra,rmarchei/cassandra,driftx/cassandra,Instagram/cassandra,szhou1234/cassandra,nutbunnies/cassandra,ifesdjeen/cassandra,apache/cassandra,krummas/cassandra,Jollyplum/cassandra,ben-manes/cassandra,jasobrown/cassandra,vaibhi9/cassandra,jasonstack/cassandra,mt0803/cassandra,codefollower/Cassandra-Research,hhorii/cassandra,weipinghe/cassandra,jasobrown/cassandra,DICL/cassandra,pofallon/cassandra,aboudreault/cassandra,Stratio/stratio-cassandra,strapdata/cassandra,blambov/cassandra,yangzhe1991/cassandra,joesiewert/cassandra,michaelsembwever/cassandra,rdio/cassandra,sriki77/cassandra,mambocab/cassandra,tommystendahl/cassandra,ibmsoe/cassandra,thobbs/cassandra,mike-tr-adamson/cassandra,LatencyUtils/cassandra-stress2,thobbs/cassandra,a-buck/cassandra,mheffner/cassandra-1,juiceblender/cassandra,beobal/cassandra,adejanovski/cassandra,iamaleksey/cassandra,kangkot/stratio-cassandra,bdeggleston/cassandra,regispl/cassandra,boneill42/cassandra,mgmuscari/cassandra-cdh4,nvoron23/cassandra,kgreav/cassandra,nakomis/cassandra,belliottsmith/cassandra,helena/cassandra,Stratio/stratio-cassandra,HidemotoNakada/cassandra-udf,caidongyun/cassandra,blambov/cassandra,aboudreault/cassandra,ollie314/cassandra,mgmuscari/cassandra-cdh4,strapdata/cassandra,yhnishi/cassandra,scaledata/cassandra,miguel0afd/cassandra-cqlMod,instaclustr/cassandra,DICL/cassandra,juiceblender/cassandra,clohfink/cassandra,snazy/cassandra,AtwooTM/cassandra,spodkowinski/cassandra,nvoron23/cassandra,krummas/cassandra,shawnkumar/cstargraph,nutbunnies/cassandra,mt0803/cassandra,iamaleksey/cassandra,dprguiuc/Cassandra-Wasef,jasonwee/cassandra,sedulam/CASSANDRA-12201,macintoshio/cassandra,nitsanw/cassandra,WorksApplications/cassandra,jasobrown/cassandra,blerer/cassandra,RyanMagnusson/cassandra,taigetco/cassandra_read,joesiewert/cassandra,blambov/cassandra,likaiwalkman/cassandra,rmarchei/cassandra,swps/cassandra,ptnapoleon/cassandra,belliottsmith/cassandra,DavidHerzogTU-Berlin/cassandraToRun,rackerlabs/cloudmetrics-cassandra,mkjellman/cassandra,pthomaid/cassandra,scylladb/scylla-tools-java,emolsson/cassandra,jeromatron/cassandra,Bj0rnen/cassandra