Make sure what loadPkg returns has a "keywords"

loadPkg should always return a complete config which has a "keywords" field. For empty cases, return the empty array as "keywords" field of the config.