Diagnostic for TypeAliasDefinition is null.
(cherry picked from commit 650aa21)