Port libanki bug fix in importer

Port a [bug fix in Anki Desktop](https://github.com/dae/anki/commit/47c3bb07961ec990a075f4053d66d91ebfced7f4) which was causing sync sanity check