Fix a crash in the mod selector when using the mod downloadder.
When closing the mod downloader, the list of enabled mod is reset, which can lead to an out-of-index assertion failing in the engine if an enabled mod was selected before.
Reported by: Vas
Fixes #6001
Differential Revision: https://code.wildfiregames.com/D3537