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
The gem's current version is `1.5.3`, I think we want to move these changes to the next release?