[aot] Add a more helpfull error message when a method cannot be loaded.