swh.deposit.client: Fix unparsable error response
That can happen... when providing the wrong input. 404 returns html content and not xml for example.
Test Plan
existing tests ok, that particular conditional is missing though but i'm lazy right now.
Migrated from D7257 (view on Phabricator)