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

I do not know if this is the correct branch to add a pull request to. Since there might be people depending on the inconsistent behaviour I picked the next major version.