Check whether $COLUMNS is empty or zero, not only empty

Fixes #983