fixed sendSampleRecord to not include commas with null entries