fixed: crash when there is no root entity to show sidebar tree