fix NRE in CreateElementList, if it's a file without a current ITypeDefinition (e.g. ResourceDictionary)