Fix regression for range reports

When calling set_tasks we first need to initialize the tasks to []. This
will clear out old tasks and ensure that tasks is initialized, since
it's set to None in the constructor.