Fix crash in GWEN_Gui_SetCharSet (gnucash bugzilla #741161) that was calling iconv_close on an invalid descriptor.

Fixes the crash introduced in r2297 / f12fd6e1f in April 2014.