Issue 1567: Handle failure to fetch card count.

If the card count is not fetched correctly, we should fail the import.
Merge pull request #5 from flerda/v2.0.1-npe

Issue 1567: Handle failure to fetch card count.