Fix handling of missing Content-Type for JSON