Fix font style display issue in HTML messages with styled <span> elements (#1490101)