Fixed event filtering in circuits.io.Process's generate_events handler