Handle deleted projects and versions in index