[mcs] Caching of type argument types should not happen under error conditions. Fixes #18282