test_result: fix "Retry Count" being acquired on test result line

At the end of test result, we calculate the sum of test result line
retries and set it as a property on test result. Listbox will then
show for each test result line the number of retries. Problem is
that we did not set retry count property on test result lines which
were not retried, so they acquired this from the parent test result.

To prevent this, always set a retry count property on test result
and set it to 0 when they are not retried.
4 jobs for fix/test_result in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner1

01:10:05

passed ERP5.PerformanceTest-TestRunner1

00:23:06

failed ERP5.UnitTest-TestRunner1

01:52:58

canceled ERP5.UnitTest-TestRunner1

02:13:39