Fixing curl generation when nil header is passed

For some reason when trying to use the master on my app the `Origin` header is being passed as `nil` and the new exclusion of headers is throwing an error.