Fix undefined notices in the download file exporter