Fix checking deleted diff IDs exception