Fix saving popup file when there's no file open
Fix saving popup if there is no file open