Fix bug with looping in schedule() which can occur if 1) there is no task runnable...