Fix warning when exporting NULL to csv