Check parent group/section is set before assigning to new nodes

Check that the parent's group / section have values before assigning them to the node being imported.