Better failure reporting and error handling for csv measurement upload

Handles empty rows (nothing in the commas), by skipping them. Also reports failures better.