Fixed a very subtle bug

If the program had an undefined variable it would stop parsing a section
of code.