Clear lazy loading initializer after the service is successfully initialized

Fixes #8875