Guard against null getResponseHeader('content-type') in clientSync

Possibly from browser restrictions, jquery throwing a parseerror from malformed JSON, etc.