Fix GeneralizationTest after "reverted added null check in NamedEntity"