elastigo doesn't properly test if indices exist - added workaround, resolves issue #7