fix error when processing empty upserts/deletes reponse