fix #10727, so raw file bean can create empty files
Merge pull request #1076 from mtbc/trac-10727

fix #10727, so raw file bean can create empty files