Do not reset KPluginModel if there are no plugins
Otherwise the last int for the beginRemoveRows method call will be -1 and trigger an assertion in debug builds of Qt
Otherwise the last int for the beginRemoveRows method call will be -1 and trigger an assertion in debug builds of Qt