filter out null values that are part of a generator