MDL-37355 Fix the REST server that didn't send back the cleaned values