Filter nulls before fetching values from an index