Fixed two crashes related to sharing badges with invalid share tokens.
Merge pull request #738 from christensenep/737-fix-badge-share-crash

Fixed two crashes related to sharing badges with invalid share tokens.