fixed exception in ModelCode::validateBaseClass
fixed exception in ModelCode::validateBaseClass

fixes #3009

phoenix3008/yii,auburus/yii,softark/yii,l3xthanzero/trackstar,kurorido1990/dev-github,lsjing/yii,Vartacom/yii,yiichina/yii,marcovtwout/yii,janisto/yii,janisto/yii,yiisoft/yii,trewor-kapusta/yii,auburus/yii,GerrGIT/yii,phoenix3008/yii,makasim/PayumYiiExtensionSandbox,kurorido1990/dev-github,tvs-prarthana/yii,intersvyaz/yii,ImAnilChaudhari/yii,longhua828/yii,yiichina/yii,intersvyaz/yii,tvs-prarthana/yii,Vartacom/yii,tvs-prarthana/yii,licailing/yii,mudrezzz/testphp,kurorido1990/dev-github,longhua828/yii,scriptius/blog,guber007/yii,phoenix3008/yii,licailing/yii,l3xthanzero/trackstar,YaDelivery/yii,ImAnilChaudhari/yii,guber007/yii,marcovtwout/yii,wbfree/yii-tutorial,Vartacom/yii,GerrGIT/yii,GerrGIT/yii,kurorido1990/dev-github,Yanan1021/yii,YaDelivery/yii,lubosdz/yii,phoenix3008/yii,mudrezzz/testphp,makasim/PayumYiiExtensionSandbox,yiichina/yii,ImAnilChaudhari/yii,sachintaware/yii,marcovtwout/yii,intersvyaz/yii,l3xthanzero/trackstar,scriptius/blog,er361/yii-zadanie-somnium,wbfree/yii-tutorial,longhua828/yii,auburus/yii,YaDelivery/yii,mudrezzz/testphp,Vartacom/yii,janisto/yii,licailing/yii,makasim/PayumYiiExtensionSandbox,mudrezzz/testphp,Corfiot/yii,Yanan1021/yii,guber007/yii,GerrGIT/yii,jackey/YiiAPI-Framework,er361/yii-zadanie-somnium,sachintaware/yii,Corfiot/yii,er361/yii-zadanie-somnium,janisto/yii,longhua828/yii,jackey/YiiAPI-Framework,YaDelivery/yii,trewor-kapusta/yii,sachintaware/yii,lsjing/yii,licailing/yii,softark/yii,scriptius/blog,lsjing/yii,tvs-prarthana/yii,marcovtwout/yii,Yanan1021/yii,yiisoft/yii,Infowatch/yii,er361/yii-zadanie-somnium,scriptius/blog,lubosdz/yii,guber007/yii,auburus/yii,ImAnilChaudhari/yii,makasim/PayumYiiExtensionSandbox,lubosdz/yii,lubosdz/yii,Infowatch/yii,sachintaware/yii,lsjing/yii