BACKLOG-5261: Fixed NPE due to improper initialization of externalChildren.
Make getChildrenNodes possibly throw RepositoryException.