Fix poll.js crash on startup