Avoid an assert which is hit when a 3.0 runtime loads a 2.10 corlib. Fixes #9137.