fix bug with incorrect handling of sessionScopeNode = null
Merge pull request #542 from dlatnikov/JFG_800_mistake_in_select_all_after_session_scope_implemention

fix bug with incorrect handling of sessionScopeNode = null