removed bug from rexsearch::deleteCache

an error occurred when param $_indexIds was an empty array