Fix possible usage of NULL pointers in apps/spkac.c