OC-8641 - new_resource.cookbook_version is nil for some resources

Since the existing tests mocked out Resource#cookbook_version it missed
the case where if Resource#cookbook_name is nil then cookbook_version would
also be nil.

Added guard logic around setting the cookbook_name, cookbook_version
in resource_reporter.rb to protect against the case where cookbook_name
is nil.
update logic so that we don't return dummy values in resource reporter
Merge branch 'jc/reporting-no-cb-version'