Handle applyPrefixes with an empty string
Summary:
When setting an empty QStringList as prefix, it can lead to unexpected results, such as the prefix not changing.
BUG: 377441
Reviewers: Plasma
Subscribers: plasma-devel, Frameworks
Tags: Plasma, Frameworks
Differential Revision: https://phabricator.kde.org/D5000