fixed undefined index: 'children'
Merge branch 'hotfix/empty-tree'