Before calling renderTile, check if the element is still attached to the DOM
Merge pull request #4 from mwoc/master

Check if element is still attached to DOM before calling renderTile