fixes #6603 / BZ 1115341 - content search - fix for missing package metadata

This commit is to address errors that could occur if the package
metadata was missing information for fields such as provides,
requires, files or changelog.