Fix issues in the context of pagination when an entire import is deleted.