Batches: Do not attempt to cancel non-existing tref.  Closes #1984