poll: fix removed package detection