Avoid segfault when libgit2 doesn't report an error