Checking if rootNode is null in Session