bug fix in Poller when there are 0 items to pop