Minor improvements to flows module.
Minor improvements to flows module.

- null check getCommits()
- null check parents when exploring commit history
- log addPeer()

google/mawfs,google/mawfs,google/mawfs