did you only remove the pieces of code for the poll?
did you delete any files you shouldn't of?
cleared it from the database, if you used the database version?
Not sure it'll work but since you don't get an error on the second call to set_template(), but that could be it stopped execution when it got the error.