Fixed getPollInfo returning invalid JSON if empty