Fix compiler crash doing semantic on a function literal after errors