Fast forward merge fix

Pull request with changes requested by @nulltoken from https://github.com/libgit2/libgit2sharp/pull/617