Ah yes, I've managed to replicate the issue you described. The problem was that to get the identifier of the YubiKey, the first 12 characters of the token should be extracted. As there was no token available, the operation was performed on `None`. I've provided a default value to overcome this.

The overall work is still WIP; the implementation is nearly finished, but a few unit tests are required as well.