MODE-2338 Fixed NPE when iterating children using globs.
Merge pull request #1298 from hchiorean/MODE-2338

MODE-2338 Fixed NPE when iterating children using globs.