fix or band-aid for #3649 (loading a session file might fail when using the session...