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 c64ee543
(To ensure everything builds fine.)
Related to #2401 (closed)
Test Plan
tox
Migrated from D3139 (view on Phabricator)