Don't blindly trust empty remote output when ssh have non-zero
return code.

Ticket: #5213