Avoid chart duplication on timeline updates on modal.close

https://www.openproject.org/work_packages/7247