Corrected promise identifier
Fixed bug where createIndex promise was being resolved after a reject