cmCTestSubmitHandler: Fix CDash response JSON parsing

Amend commit c0e1d332af (cmCTestSubmitHandler: Use cmJSONState to read
responses, 2026-07-28, v4.5.0-rc1~374^2) with a regression test.

Fixes: #28282
5 files changed