mod_survey: fix problem where displaying the results did not work due to move sanitization functions.

(cherry picked from commit 3ff889456747c9d9a5d9e3932dd856063211f7ab)