Exclude deleted evironments

When an environment is being deleted, it should allow to deploy a new environment with the same name. Therefore, deleted environments should be excluded from search.