[#1329] Check if pkgMeta is undefined