RF-13455: Unwrapped the VisitContext to determine if it is a RenderExtendedVisitContext