[XS] Change in osmo-cbc[master]: rest_api: Fix encoded payload length check