Null check before adding handlers to the collection.