fixed bug when no files has been processed but ES has been called and end up in exception

updated readme.md