Correctly check for missing index.