Stops redis-cli --pipe from blocking with malformed protocol data (#681)

This fixes the issue #681. Now, redis-cli exits when the piped data
contains syntax errors.