[OE-3214] bugfix for crash when saving sessions