Fixed a bug that would cause internal server error 500 if a post request is made after a token has been deleted from the given survey.