"undefined" tree type. This can happen if the tree is linked from a library
and the path is lost, or if a custom (python) tree is used and the script is not
run.
The fix is to check if the node group type is valid ("registered") and return an empty list otherwise.