add missing check for BN_mod_inverse