Handle case when SELECT returns 0 rows.

Currently, the function in question 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.