Yeah, the fix for this is superficially easy, but it's one of those things I worry could have unintended consequences. I guess I'll think about it. For future me or other interested parties, this is caused by this conditional. Knock it out and everything should be handled by this and beyond.
How to reproduce
1. Create first mod script in game folder: mod1.tp2
2. Create a second mod script in game folder: mod2.tp2
3. Install mod components:
Resulting WeiDU.log content:
4. Uninstall the first mod component of "mod1" (Component A):
Resulting WeiDU.log content:
Expected WeiDU.log content: