Sometimes the nail head core does fall out. It could also be a normal rivet.
If it is hollow, no core, I'd drill the head off. Use a bit larger than the hole. High speed, low pressure, go slow. And be mindful to avoid heat, severe bit grabbing, and shocks. Lionel motor plastic is normally strong, but slightly brittle at times, good with heat. Everything has its limits though .