Bug 1112746 - some internal object checks are missed in xpcom wrapper, r=yzen