Make the ScopedKey in TaskStarted/TaskFinished optional

Because there are tasks with no key.