Fixed bug in questionnaire_get_survey_select function.

Signed-off-by: Joseph Rézeau <moodle@rezeau.org>