fixed @NotNull assertion while indexing