Fix "undefined function" bug when iterating an object created with Object.create(null)