api: Don't crash on unexpected data, just warn