Fix minor glitches in coverage table

Reuse calculation in Coverage bean (has guard for division by zero)
Fix ratio table html
Delete unused local variable
Prefer StringBuilder over string concat
Remove redundant string formatter