added isAttributeActive to Model

consistent api for safe and required
Merge branch 'master' of github.com:yiisoft/yii2

* 'master' of github.com:yiisoft/yii2:
  fixes issue with debugmodule initializing view component too early