Fix undefined to_curl errors when DeleteByQuery fails.