small corrections to if statements for index_exists.
small corrections to if statements for index_exists.

Phrozyn/MozDef,mozilla/MozDef,gdestuynder/MozDef,mozilla/MozDef,Phrozyn/MozDef,Phrozyn/MozDef,Phrozyn/MozDef,jeffbryner/MozDef,gdestuynder/MozDef,gdestuynder/MozDef,jeffbryner/MozDef,mozilla/MozDef,gdestuynder/MozDef,mpurzynski/MozDef,mpurzynski/MozDef,jeffbryner/MozDef,mpurzynski/MozDef,jeffbryner/MozDef,mozilla/MozDef,mpurzynski/MozDef