ui/sdl2: Check return value from g_setenv()