Convert NodeList to an Array to make PhantomJS 1.x happy.