Fix crash on koko startup.
- Q_ASSERT(QUrl(url).isLocalFile()) setUrl function is meant to also get empty url, which made this assert fail, so move the Q_ASSERT after we set url to Pictures location in case of empty url.
- Q_ASSERT(locations.size() > 1) Fix the logic bug, which made it crash on 1 location getting returned by QStandardPaths, it is supposed to check for 1 or more, not more then 1.
Test Plan: No longer crashes at startup.
Reviewers: Koko, mart, atulsharma
Reviewed By: Koko, atulsharma
Differential Revision: https://phabricator.kde.org/D8472