Fix an error when creating a new task that is not in a sprint