What is the consequence if someone hands over a thing believing they have a duty to do so, but then it becomes clear that they had no such duty?
The person who handed over the thing can recover it from the person who took it if it still exists, or recover similar property or the value of the thing if it no longer exists.