[knewstuff] Do not leak ImageLoader on error
Differential Revision: https://phabricator.kde.org/D8811
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>