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

Branch-rate should be 1.0 when a class has no branches since there is only one code path which can be taken.

Something I have noticed lately.

Cheers
tarbrain