There's no way to do that short of swallowing the exception that the product key is revoked.
I guess the real question is why is a person with a revoked product key allowed to buy a new one? The typical use-case for revoking a product key is when a customer fails to pay for your product, or they bought your product with a fraudulent credit card.
How are you using revoking keys?