Notwithstanding any other provision of law, a treasurer who deposits public moneys in compliance with s. 34.05 is thereby relieved of liability for any loss of public moneys which results from the failure of any depository to repay the public depositor the full amount of its deposits thus causing a loss as defined in s. 34.01 (2).