check for valid service before iterating
Merge pull request #1000 from control-center/bugfix/anyServicesExported-2

check for valid service before iterating