Fix popup error "Failed to get public key" when deleting key from single key view