Fix #2347993: Wrong substring index in PluginCollection::analyzePluginMethods().