Fix BETWEEN and NOT BETWEEN conditions.

```
PHP Notice – yii\base\ErrorException

Undefined offset: 3

in .../yiisoft/yii2/db/QueryTrait.php at line 269
```