Coverity fix: Fix possible illegal memory access

Details:
uninit_use_in_call: Using uninitialized value p.code when calling
VisitorState.
uninit_use_in_call: Using uninitialized value p.line when calling
VisitorState.