Fix potential crash in peel when the ref is symbolic

If the original reference we're peeling was symbolic, Rugged would crash in `git_oid_cmp` because `git_reference_target` would return nil as the right side. So if the reference is symbolic, skip the oid comparison since we'd have to resolve it down to the same value `git_reference_peel` is handing us anyway.