Fix NRE in compiler.