Guard failed testItem creation
Summary: createObjectFromSource can return a null on error. This needs guarding.
Reviewers: Plasma, mart
Reviewed By: Plasma, mart
Subscribers: plasma-devel, Frameworks
Tags: Plasma, Frameworks
Differential Revision: https://phabricator.kde.org/D7532