[#30201] Fixed error in Firefox: TypeError: Argument 1 of Node.contains does not ...

...implement interface Node.

Joomlacode tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33927