Handle case where "Content-Type" header is not set

Avoids "Cannot read property 'match' of null" exceptions.
Can we just copy/paste duplicate this test and leave the existing one as is?