Fixed bug in index.js when fetching triposes if data is empty

![](http://i2.kym-cdn.com/photos/images/facebook/000/117/814/are-you-wizard.jpg)