Error handling for empty responses from pump.

Catch 0-length response strings before they can cause an exception and return an appropriate error.
Merge pull request #1 from sammacbeth/empty-responses

Error handling for empty responses from pump.