[PDI-11158] Fixed a bug in the folderBrowser where it was assuming the existence of children at every level.

[PDI-11158] Fixed a bug in the folderBrowser where it was assuming the existence of children at every level.