Fix #17: Handle invalid commit sha properly when using GitPython 0.3.2