Trainee pilot lands plane safely after losing wheel mid-air