Fixes #4497: Bad Request, Unable to verify your data submission

Fixed `StringHelper::byteSubstr()` returning empty string on null `$length` param
improved it even further and fixed the length=0 case: https://github.com/yiisoft/yii2/commit/7af92173b1c527813714e814a66d0e2d62e4e56c