Make CsvWriter::writeHeader() always safe to call.