return early from removeContentHeaders if res._headers is null
Merge pull request #942 from laktek/master

Fix removeContentHeaders to work if no headers have been set