Remove an impossible condition.
Split report generation and HTML generation into two separate
procedures.