check if answerType is set when saving a poll to prevent running in an error