fixed indexer crashing if an invalid id was found.