Fix for create MessageSource object

https://github.com/yiisoft/yii2/issues/1654