Fixes #5619: `yii\log\Target` should not attempt to start session when there is none