Fix handling of yielded tasks so that events are still processed, when a task continuously calls `yield()`