fix migration blowing up on deleted projects