Fix crash when the account config is gone and there are still folder

In rare case (due to a bug in QSettings) the account config may disapear
We should not crash in that case