fixes a bug when a service is null
fix a bug when set service is null
Merge pull request #75 from marliotto/master

Fxes a bug when a service is null, Issue #70