MODE-2338 Fixed NPE when iterating children using globs.