Fixed bug in Node#triggerHandler()
Need to check if there are any handlers for the specified event type before calling the handler function.