Fix for passing jQuery constructor a DOM NodeList in Safari and an object or embed HTMLElement in Firefox.