Allow UIA to work again on Win7 after pr #12210 (#12233)
With the merging of pr #12210 it became impossible to interact with UI Automation controls on Windows 7.
* Fetching the annotationTypes UIA property raises a COMError if not implemented by the control. On newer Operating Systems UIA core returns a default.
* Fetching the SelectionPattern2 interface also causes a COMError on older Operating Systems if not implemented by the control.
Therefore:
* Catch COMError when fetching UIA annotationTypes.
* Catch COMError when fetching the UIA SelectionPattern2 interface.
Fixes #12227