Update ER_Parameters.m

Found that in some cases, the average path lengths were resulting in 0 or infinite values, this was throwing off analysis further on. This new update removes these cases and utilizes later cases so that the avg. shortest paths are usable to estimate small-world-ness.