merge: add error handling for index reload Cleans up should git_repository_index or git_index_read fail