Fix bug when a badge is not found
Merge pull request #230 from dirkcuys/master

Fix incorrect exception catched