Check return value of gpgme_op_*_result

Problem reported by David FRANCOIS in issue#58.