Fix crash in csv header sniffing