agent: Protect commit 135b1e3 against misbehaving Libgcrypt.