fix(service): handle case of injected service with null value

Since `typeof null` is `object`, the previous logic for patching services
would attempt to call `Object.keys` on null values in an effort to
find functions on a service. Null values should be skipped over.

#13