Make sure SchemaGenerator does not throw NullReferenceException when serializing schema for types having no base type.