Fix modmanager crash in case of invalid mod selection