gpg: Fix use of assert from commit dc417bf0.