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