Fix return code and unset fields

Patch sent by Wolfgang Breyha to the spf-devel mailing list: http://article.gmane.org/gmane.mail.spam.spf.devel/2092