Lots of bikes have a tip over sensor so cut the engine once horizontal. Should be able to start again once upright though. At least you & the youngster are OK, as said, the bike is just that.