Handle case when SELECT returns 0 rows.

Currently, the function in query basically chokes trying to build the
results buffer. This patches it such that if `rows` is nil, we emit a
simple `message` and kill the empty result buffer.
Merge pull request #11 from tdavis/select-no-rows-returned

Handle case when SELECT returns 0 rows.