Improve error when service is not a dict

Fixes #127