dont crash a poller when the function is null
Merge pull request #97 from bstarynk/master

dont crash a poller when the function is null