Fix error message thrown if there is a loop/missing dep in particles