Fix crasher bug.

It is necessary to deal with an NIH error in a particular error context before another is raised.