Fixed issue #7247: Token related error after submitting a survey