Improved test for untitled files in _savePreferences