Fix bug in which canceling an account caused a 500 error and broke the website