Fixing bug when rendering an empty response body