Fix error when saving a new task that has been assigned