hotfix fileupload null exception when origin header is not available