Prevent some "Source ID ## was not found..." warnings

These appear in glib 2.40, and, well, are pretty much useless. But
people complain about them anyway.

Probably fixes trac ticket 1151, at least partially.