fix bugs of BlameableBehavior in console application.

In console application, \yii\console\Application doesn't have `getUser()` method. Use BlameableBehavior in console application will cause an exception.