If there are no questions
display_pollvote in wp-polls.php will generate an error notice everytime
$poll_question is used in the lines below.
When using the custom code or wp-polls as a widget there should be a default action if no active polls exist. A choice could be not to show anything or give a message that there are no polls.