Fix errors when call `forEach` on a nodelist. Close #26