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

From browser restrictions, jquery throwing a parseerror from malformed JSON, etc.
Merge pull request #202 from rcs/patch-2

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