I haven't been able to reproduce this and I just realised why. For the Kobo devices, the import doesn't need to prompt to check the annotations are being applied to the correct book. It is needed for the Kindle.
I was able to force it through this code and it was obvious what the problem was. Please try the attached version.