Fix checker initialization crash (#46973)
Fix checker initialization crash (#46973)

* Fix checker initialization crash

* Move checks to a place that makes more sense
SaschaNaz/TypeScript,Microsoft/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,SaschaNaz/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,microsoft/TypeScript,microsoft/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,SaschaNaz/TypeScript