fix an npe in the services layer
Merge pull request #1768 from devoncarew/devoncarew_services_npe

fix an npe in the services layer