Fix crashes that should be 404s

There were a bunch of places where we were fetching a badge based on user input, and not checking to see if the badge was actually found, causing a few different crashes.  (The code was generally assuming that a getOne call would return an error if nothing was found, which is not the case)