Issue #45 revealed a minor problem when project didn't have any
languages so i fixed.
Refactoring in the checking of error message coming from the github API