Properly handle malformed query strings.
Properly handle malformed query strings.

Change-Id: Iab42fa9429fb32156a22fcf7cdab974a5a2c14db

ShefronYudy/opentsdb,alienth/opentsdb,sidhhu/opentsdb,alienth/opentsdb,johann8384/opentsdb,johann8384/opentsdb,MadDogTechnology/opentsdb,OpenTSDB/opentsdb,kidaa/opentsdb,andyflury/opentsdb,eswdd/opentsdb,andyflury/opentsdb,MadDogTechnology/opentsdb,kidaa/opentsdb,eswdd/opentsdb,OpenTSDB/opentsdb,sidhhu/opentsdb,MadDogTechnology/opentsdb,ShefronYudy/opentsdb,OpenTSDB/opentsdb