Lua main menu: Fix crash on init lua error, mapgen dropdown index, and new worlds not saving index