Fixes HTMLElement check error in DOM-less environments
Merge pull request #173 from tonylukasavage/HTMLElement

Fixes HTMLElement check error in DOM-less environments