The changes in a82d67bb didn't preserve a g_object_weak_ref() call that we need to ensure the objects in hash map don't become stale. Fix this.