Handles cases where elements appended to the document do not implement tagName

This simple fix enables pixi.js 1.6.1 to run on top of ejecta.