Instead if checking setHeaderAction  for null do:

```
if(_restrictedHeadersSet.TryGetValue(headerEntry.Key, out setHeaderAction))
```