gitk: Fix bug caused by missing commitlisted elements