Added exception handling for searching when index not yet ready