Prevent Qt crash at startup with an empty data directory