Deployment.delete: Fix potential race (resource added after check for resources)