Check parent values are not empty before setting them

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