make_index does need all the packages available to properly work

Therefore after removing the restricted packages rerurn a sanity check to
remove the packages with unexisting dependencies