fix(getChildren): Handle case when getChildren fails to return any children.

If a node doesn't have any children, getChildren will fail with 'no node'. If we get an error from getChildren, don't attempt to lock and bubble up an error.