Handle case where no items are in a coverage class

Order of comparisons was incorrect, and the case that was trying to be solved (100%, even if num/denom is 0/0) was not handling the edge case of 0/0.