Fixed bug where csvreader would crash if record was empty