Fix NoSuchElementException when first column is all null values