_is_json should handle None in case there is no content-type