If you do several saves in short order. Occasionally the save doesn't go through and saves an empty file or incomplete file. In which case you resave again to fix the issue. This is a long standing bug. Look at a different file and then look back at the offending file to refresh your window to see what is really loaded. The exact code isn't the offender here.
Long time bug