Fixbug 167822 - Error when exporting data without a active session