Stop the app hanging whenever it tries to highlight anything.

Currently it's going through every path in the graph rather than just the minimal set, because the check to avoid this is slightly wrong.
Could be the problem described in issue 13 https://github.com/Haacked/SeeGit/issues/13