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

Fixes #983
Merge pull request #985 from ZyX-I/fix-983

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