Fix EZP-23480: Error in json response when uploading file