[aot]Clean the loader error after calling mini_method_compile to avoid poisoning further calls.