autoSyndrome: fixed a bug when a reaction didn't have a valid mat_index.