dont crash a poller when the function is null

avoid a core dump....