check for active scope

Check if the scope is active. Even if you have a scope request it does not mean that it is active. If it is not active the kuma:search:populate throws error "You cannot create a service ("templating.helper.assets") of an inactive scope ("request")."