Fix a crash in LSR replaceCongruentIVs.