TestSuite: added just-to-be-sure assert.

To make Clang Analyzer happy.
PluginManager: don't call function if the pointer is null.

Thanks, Clang Analyzer!