add missing code from 0761f816

This couldn't be merged into cp-4.2 by the time I did the print-comments
backport because the IAccessible2 backport wasn't complete yet.

Change-Id: I9d8d041194fae6742393cd3252de0307b0171b82