[#1403] Send 500 on null headers

Strips out the body as well and log debug
Merge pull request #1876 from baloo/bugfixes/1403-header-null

[#1403] Send 500 on null headers