[reports] attempt at fixing undefined plot legend

It's extremely difficult to reproduce this problem.

However I propose this patch. Could you please try and let me know if this solves the problem ?

Merge request reports

Loading