[DependencyInjection] fixed PHP notice when the scope is not defined