CMS-2671 Expander-icon for folder present when folder is empty

- fix for parent node can't be deleted after removing all children