fix bug with incorrect handling of sessionScopeNode = null