Avoid getIndexes crash when called with no parameters.
Merge pull request #101 from sorribas/master

Avoid getIndexes crash when called with no parameters.