Fix a stray semicolon that could lead to a segfault.

We'd try to rename a reference even if loading it failed.
Merge pull request #329 from libgit2/arthur/fix-typo

Fix a stray semicolon that could lead to a segfault.