Handle errors on end before parsing ids.

Currently reds throws an uncaught error trying to grab ids[1] since ids can be null when there is an error returned from the redis client.
Merge pull request #1 from nisaacson/handle-errors-on-end

Handle errors on end before parsing ids.