Fix crash on file export with empty values.