Fixed reference to self.tasks in MultitaskTopLayer before it was defined