ci/test: Fix esp_http_client test not to use pointer after free Closes IDFCI-350 See merge request espressif/esp-idf!11829