Fixed: JSON parse error when no cookie data available