BaseMailer's render method checks if Request is instance of yii\web\Request before disabling csrf validation