Error handling for empty responses from pump.

Catch 0-length response strings before they can cause an exception and return an appropriate error.