[451208] Handle broken proxy better for getExtendedClass.
[444976] Guard against recursive setSelection calls.