This fixes a couple of cases where an inconsistent BIGNUM could be passed as