added better handling of csv responses in readByQuery
Merge pull request #9 from jpcampbell/master

better handling of no records in csv response