Fix bugs for apps that do not have AOT metadata when running the --tac-regen-all...