Fix issue where deleting a user would show a 500 error in the JS console

Fixes #74