Fixes #6488: Support changing `yii\base\Theme::basePath` during runtime