Fix validation error with preRenderViewEvent.