Fix "instanceof Element" check in old Firefox versions
(3.6 and older?)
(part 6 for #14)