Fix assert when using an empty tab to load a folder
- create empty tab -> this calls FolderSettings::setCollection(invalid)
- switch to folder -> kmmainwidget calls writeFolderConfig() for the old folder (invalid), which calls FolderSettings::resource(), which asserts.
There's just nothing to save in such a case, skip saving.