Fixed throwing ANE instead of NRE.