Fixed conversion error of KeyError that prevented the code from running.

Critical fix, msc_validate.py will fail to run without this.