Make deposit client deal properly with maintenance issues
Prior to this commit, this expected to parse properly the api response. It
could not as the response was not in the proper format.
This also fixes incomplete test committed by mistake in
c64ee54311f724fb49a8b62918b40db7ea2fc019