Testing for badge existence during 'claim' process

Users can currently claim badges they already have, which leads to problems further down the line, particularly when it comes to the guardian dashboard.

Also resolves #651.