Avoid chart duplication on timeline updates on modal.close


Fixes #7247