Just make sure the task being registered is not active.
It could be that we have an inactive task with the same name which would be OK to replace.