fix Issue 12098 - libcurl bad argument on handle null