Skip coverage calculation when total number of resources is 0

coverage calculation throws `NaN` (not a number) exception when total number of resources is 0, (it comes from JSON generate). Since we have specs for knife plugins and other libs which does not involved recipes (hence no resources) but the `spec_helper` invokes chefspec coverage at_exit which fails the build.