Only print the modular inverse if it actually exists.