Hosts/services should not have themselves as parents

fixes #7483