Add more robust error checking in Github license

This is happens when you have to make multiple API requests.