Fixed issue #08527: Internal Server Error during registration
Dev: fix $iSurveyID