BUGFIX: prevent Qt client crash at startup with an empty directory