[#122] check for key existence before checking for equality

- As reported by @tad3j, errors can occur if the `service_name` key does not
  exist for the given service.
Merge branch 'hotfix/122'

Fixes #122