fix segfault when no addon mods exist.