Fix handling of non-categorized records in spreadsheet

Fixes #2379