#15094: fix incorrectly placed #endif in _tkinter.c.

Patch by Serhiy Storchaka.
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index f6cd88d..70f4703 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -996,8 +996,8 @@
                              ch);
                 ckfree(FREECAST outbuf);
                 return NULL;
-#endif
             }
+#endif
             outbuf[i] = ch;
         }
         result = Tcl_NewUnicodeObj(outbuf, size);