Fix a race condition on index' doc count retrieval
Fix a race condition on index' doc count retrieval

managers.Indices.get_indices() could fail (and raise a KeyError) upon
reading the 'num_docs' of an index just created. Catching the exception
and setting the 'num_docs' to 0 (which is the actual value) fixes the
problem.

haiwen/pyes,mavarick/pyes,haiwen/pyes,HackLinux/pyes,Fiedzia/pyes,jayzeng/pyes,mavarick/pyes,aparo/pyes,jayzeng/pyes,HackLinux/pyes,aparo/pyes,mavarick/pyes,Fiedzia/pyes,aparo/pyes,haiwen/pyes,jayzeng/pyes,HackLinux/pyes,Fiedzia/pyes