Vertex correction effects on nonlinear optical response