Revert until libkleo depends on a version of gpgme that has Key::isBad(). This reverts commit 5314843f.