Fix #66562: Consistency bug where curl_multi_getcontent behaves different from curl_exec

I doubt this should be applied to master but I could not really figure out how to make a pull request to a tag only. Since there might be people depending on the inconsistent behaviour I understood it should probably be applied to the next major version.