Added better error message when adding a task with a name that belongs to another registered task.