Fixes NPE when content-type header is missing