Small correction in TestGraphValidator to avoid index out of bounds exception (only appears in 5.0.x)