Add check that module exist before event handling.