Prevent ResultProcessingScheduledTask.produceTasks() failing with a NoSuchElementException if the task
list is empty.