Fix handling of REST response for GetAttributes