Strengthen check for invalid columns.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>