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

Fixed `StringHelper::byteSubstr()` returning empty string on null `$length` param