Catch fatal error in indexer.js

Handle exception, when trying to index badly formated JSON
Merge pull request #32 from ilblog/patch-1

Catch fatal error in indexer.js