gitk: Fixed broken exception handling in diff