Fixed an NRE that could occur if a build occurs before parsing is complete and there are errors produced.