Possible crash fix

The crash occurred in the for loop after finding all plugin files. I'm
guessing editing the table returned by Shared.GetMatchingFileNames was
causing it, but I can't be sure as the crash happens extremely rarely
for me.