Prevent null plugins from being registered.

CCMAIL: kfunk@kde.org