return the correct header when generating csv
check for nil entries. Use an empty string for nil fields