Fixed error in Firefox: TypeError: Argument 1 of Node.contains does not ...

...implement interface Node.

Joomlacode tracker:
http://joomlacode.org/gf/project/joomla/tracker/%3Faction%3DTrackerItemEdit%26tracker_item_id%3D20219/?action=TrackerItemEdit&tracker_item_id=30201&start=150