handle white space after last column properly.
fix undef columns for empty lines within rows.
ref #5856