Don't try to find an icon for a relative URL either (e.g. '~').
Followup to 8ba93b82e451, discussion on https://phabricator.kde.org/D11044