Fix a bug where deleting file raises exception when trying to decode an
empty response.