refspec: prevent git_refspec__free() from segfaulting

Fix libgit2/libgit2sharp#247
Merge pull request #1226 from nulltoken/fix/refspec_free

refspec: prevent git_refspec__free() from segfaulting