Solved bug when giving null list of event handlers