rgw/rgw_rest_s3.cc: fix dereferencing after deallocation

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>