G-code recalculation on the last layer before fail

I know, its late and i should go to sleep, but apparently the best ideas come at night.
I know im shooting for the stars here and there have been probably many people thinking or even requesting this but.
What if, when a print fails without significant damage to the layers, as in - filament was not loaded properly by the machine and the nozzle didnt extrude anything yet the printer was finished… what if, you could continue the print?
I’m thinking of aligning the toolhead with the last layer printed before the failure and the slicer would calculate the point in which the G-Code stopped based on the nozzle position… Its basically a powerloss recovery, without the powerloss and i don’t see not one reason why this shouldn’t be possible. besides the print not sticking to the plate…

boom-mind-blown

Or maybe i should go to bed…?