Orders CSV export: more robust export. Refs #1575