Fixes curl_easy_init return value handling

Signed-off-by: Pasi Savanainen <pasi.savanainen@reaktor.fi>