Fake the isElementAttachedToDocument as we may attach to a component