Fix vertical position of timeline chart elements in aggregation

fixes #4889
fixes #4890

https://www.openproject.org/work_packages/4889
https://www.openproject.org/work_packages/4890