The mainspring energy is transferred to rotational energy, but I've put a primed empty case in the chamber and dropped the bolt as shown in the video and not fired the primer, nor even made a dent in it.
That's a common way of uncocking many bolt actions, is to hold the bolt handle at the top of the stroke and pull the trigger, letting the handle down slowly. No intellegent person would knowingly do it with a loaded cartridge in the chamber, however.
I'm not sure whether they still do it or not, but Ruger 44 mag rifles used to fire before being fully locked up. I saw two of them that were blown apart because when handloading, someone didn't fully size the cases or seat bullets deeply enough. (Ruger didn't stand behind their rifles because reloaded ammunition was used.)
I've also tried firing empty primed shells in Remington Semi-Autos out of battery and they would NOT fire.
Some blow-back semi-autos will fire out of battery, causing cases to rupture and sometimes blow extractors out of the bolt.