hal_json_style: fix double translation of worklist message

There was a regression with 45c03413 (hal_json_style: prevent a
translation of worklist with document count, 2021-05-10), the title
of the worklist was translated twice. This was supposed to be
catched by the test, by checking that the mocked gettext had only
one call for "Draft to Validate", assuming that the translation of
"Draft to Validate" was "Draft to Validate" and that a double
translation would cause this to be translated twice, but because of
a side effect of another test inserting a translation for
"Draft to Validate", this problem was not noticed.

This fixes the double translation and adjust the test to not depend
on the actual content of message catalog.

Co-authored-by: Georgios Dagkakis <georgios.dagkakis@nexedi.com>
2 jobs for fix/hal_double_translate_worklist
Status Job ID Name Coverage
  External
running ERP5.CodingStyleTest-TestRunner2

17989:11:03

running ERP5.UnitTest-TestRunner2

17989:11:10