Stop crashing when a node is null or undefined
Additional nodeList arument for handler functions