When printing errors, handle NULL returns from g_type_debug(). (#73559,