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.