Issue 1567: Handle failure to fetch card count.

If the card count is not fetched correctly, we should fail the import.