Prevent to run in bootstrap when application running in console mode.

This is useful when using Yii advanced application structure and use the same configuration for UrlManager in common section to affect in back-end and front-end.