Added filters for poll header and footer, and fixed undefined indexes

- I simplified the filter for the answers, and also added them for the header of the poll and the footer of the poll, this way there is even more customization possible.

- I fixed several undefined index and undefined variable PHP notices.