(1) Until the obligee has given his consent to the deposit or has notified the Deposit Office of the receipt of the deposited article or a judgment declaring the deposit effective has become final and conclusive, the depositor may recover the deposited article and, in such case, the deposit is deemed not to have been made.
(2) The preceding paragraph shall not apply where a pledge or a mortgage has been extinguished by making a deposit.