[pallet-revive] fix wrong values in truncated and failed execution traces (#12855)