Fix a bug in CSV export when the options is null