Remove a redundant conditional when caching typo failures.

No functionality change.