Don't crash if PUBKEY is not set when using SIGNATURE_TYPE:PUBKEY

Reported by:	RootWyrm on freenode