Fixes badge transfers

Quick fix to let badge transfers actually work. Partially addresses #598.

The emails are still weird, though, and the history still isn't saved.
Is it okay to merge/deploy this PR now, or would you prefer we wait and fix it all properly?