Fixing a crash when the parentCommit is nil.

This happened for me, when I clicked the first commit in a repo. The parentSHA was an empty string. We probably should handle the error in some way instead of just logging it.

Additionally, Apple guidelines say that you are not supposed to check the error value for anything. Just use it after you know there was a problem, because a method returned `NO` for success or `nil`.