Handle libgit exception when calling git_get_notes