[BUGFIX] Prevent exception for nodes where the parent can't be found