fixed return value of yii\web\Request::getPrefferedLanguage

ensure it is one of the input values

fixes #4880