Fix: unable to save empty files, js returns File could not be saved
Merge pull request #671 from nerodark/master

Fix: unable to save empty files, js returns File could not be saved