Allow "empty files" in the file editor. Fixes #1682.