Fix UI gfx viewer crash with no palette (nw)