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

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