[bcl] Add a missing check to TypeBuilder.CreateType (). Fixes #22059.