If the deposit has been made by a capable person to a person who is not capable, the person who made the deposit has only the action for revendication of the thing deposited, so long as it exists in the hand of the depositary, or an action for restitution to the extent of what has turned to the benefit of the latter.