tests: Add safeguards against nullptr deref
* t-gpgconf.c (main): Test some values before dereferencing them.