Fix calculation of branch coverage when a class has no branches.