Delete reference to element (but try to be safe about it). Closes troopjs/troopjs-core#99