Fix empty file for HTML5 ajax forms