Fix trying to check type for nil column