Fix for crash when retrieving last session error without active session