fix crash in peel when the ref is symbolic
Merge pull request #214 from libgit2/peel-fixes

Fix potential crash in peel when the ref is symbolic