Fix exception in packet.keymaterial.getKeyId() for V3 keys