Don't crash if a plugin provides no valid object.
(cherry picked from commit a9da8e33efb991c1c985872d6eb7eac4534d0315)

Conflicts:

	core/proxytoolfactory.cpp