fix for saving empty xmlobj
fix for failing uploads

Probably related to flash bug  and not sending cookie information on
file reference upload.