Currently, g_type_module_use(pkg) will succeed even if the package does
not exist, due to the existence of shared-object-only packages. So the
caller must look inside the UPkg structure to see if anything was
actually opened. In the future, pending tools to create the things,
such packages probably won't exist and this hack can be removed.