Added catch in earned_badge.rb to return false if no such badge exists