Fixed CSV writing when the first attribute written is an empty struct. (GL#1744)
