fix(getChildren): If a node doesn't have any children, it returns null i...

...nstead of an empty array. Detect this and callback with an empty array instead.