fixed crashes when there was an error in a routine (i.e., not at TopLevel)
Authored by: mattlewis 2007-01-03
Parent: [r34]
Child: [r36]