queue: avoid reordering messages when deleting processed batch

When batch contains only unprocessed messages there is no need to
reenqueue them. They can be left in queue and thanks to this their order
does not change.