BUGFIX: No longer tries to access nodeList.classList if nodeList is empty