Indent fix
Change curl processing logic - avoids null posts

This ensures that curl only process handles that exist. There was a wrong assumption that curl_nr_h was keeping a
consistent state, including when it's passed to curl. It's in fact only returning the current state.
Note that I don't think this specified, hence the confusion.