Properly recognize class of redefined UI connector (#10867)

Change-Id: I8e3afbd669123a846214c3bd65bf696aa2b5a536