guard against all cases of json null values