Fix autocomplete in timelines edit

Implements [3363](https://www.openproject.org/work_packages/3363)