delete-indexer cli: improve waitForDeletion

While looking into a problem I had with the delete-indexer cli unexpectedly reporting "Illegal lifecycle state while deleting: ACTIVE", I saw this was meanwhile improved, but I think it is somewhat safer this way.