Fixed the issue that `CookieCollection::has` always returns false for cookies from browser

Fix for https://github.com/yiisoft/yii2/issues/3691