fixed NPE with missing Content-Type header