gmessages: fix dropping irrelevant log domains
If the string of one log domain is contained in another, it was printing both.
For example, if G_MESSAGES_DEBUG is "Gtkspecial", it would also keep the logs of the "Gtk" domain
If the string of one log domain is contained in another, it was printing both.
For example, if G_MESSAGES_DEBUG is "Gtkspecial", it would also keep the logs of the "Gtk" domain