Don't get responses with pipeline when no commands queued  (#761 with unit tests included) - fixes #758

It's related to #761, with unit tests included.
It fixes #758.

I confirm unit tests fail on current master, and succeed on PR.
Please review and comment, thanks!