Fix a crash when removing duplicates on the ModList

When having unsigned data types comparing > 0 is a tricky business.
This is tested and seems to work

Reported-By: tomreyn
Merge pull request #1101 from stefanbeller/master

Fix a crash when removing duplicates on the ModList