Fixes #3956: Flash messages set via `Yii::$app->session->setFlash()` will be removed only if they are accessed