Changed Yii::app()->modules to Yii::app()->getModules due Exception