Safari patch for NodeList type