Don't access "request"-scope when it is not active.

While using the IntlBundle within Symfony console commands, I received errors saying that the "request"-scope can't be accessed. To avoid these errors I inserted an isScopeActive() call in RequestDetector->getLocale().