Fix detection of NodeLists, fixes #17046 !strict