Use similar logic for output variables in the different overrides of Storage::downloadObject(..., void **, ...)