gitk: Fix some bugs introduced by speedup changes