Don't put a nil if libgit2 "forgot" to set an error message.