ModListAnims: fix a possible logical error