Fix deletion of container registry or images returning an error
A successful DELETE call would result in a 204 No Content result, which would have an empty response body. Don't automatically try to parse this value as JSON because there is no additional information passed in the response body.
Closes #39354 (closed)
Edited by Stan Hu