Don't rely on journal record id to find predecessor and use version instead

Work Package [#5322](https://www.openproject.org/work_packages/5322)