Fix toggle of shared badges.

The earned badges controller was passing the `earned_badge_id` to the update query which as expecting a `badge_id`.

Closes #482.