Fix rotation on iOS8
Merge pull request #418 from TrompoGames/master

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