CLN: fix grammar in extract_index error message

closes #3968.