Prevent segfault when an OpenPGP provider is not installed
Fix incorrectly referenced declaration