Fix incorrect placement of custom accept header.
Fix incorrect placement of custom accept header.

If s.client.NewRequest("PUT", u, pullRequestBody) failed and returned a
nil request and non-nil error, doing req.Header.Set would panic. Need
to check error from NewRequest first thing.

google/go-github