gtkutil.c: Check for NULL string before calling strcmp or strlen.