mod_survey: Return the (possibly generated) submission id, after insert

(cherry picked from commit 578d7ff83c017280f9e28e7b1f26268999d394b5)