git_graph.py: handle special case where commit does not dominate any children