dig_and_set fails with RecursionError if target list contains nondict item

dig_and_set is called in Document Store when querying with distinct query type. There the target may contain items that are not dicts.