Return early from removeContentHeaders if res._headers is null

Not sure if it's useful since this is a private API method. But I happened to invoke with headers set to `null` from another project.