Bug 1024943 - Check IsContentParent() before use AsContentParent(). r=smaug