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

When saving an empty file, codiad returned a red message