Fix for iPad, where el.tagName was undefined when clicking on labels.
Merge pull request #1984 from MazeMap/ipad-label-click-fix

Fix for iPad, where el.tagName was undefined when clicking on labels.