Fixes NPE when content-type header is missing
Merge pull request #9 from psh/fix-npe-for-missing-content-type

Fixes NPE when content-type header is missing