[Fix #422] Workaround for multiple selects

Only emit a row if there was at least one column output. Otherwise it's most likely the result of multiple selects in a single statement, which is not supported in the shell.