Avoid trying to take the modular inverse of zero in response to a