Fix BETWEEN and NOT BETWEEN conditions.

```
PHP Notice – yii\base\ErrorException

Undefined offset: 3

in .../yiisoft/yii2/db/QueryTrait.php at line 269
```
Merge pull request #3153 from gonimar/patch-14

Fix BETWEEN and NOT BETWEEN conditions.
added change log [skip ci]