[DependencyInjection] fixed regression where setting a service to null did not trigger a re-creation of the service when getting it