Avoiding artifacts when varying the number of species in ecological network models