add null check to responseFormat cookie
add null check to responseFormat cookie