Do not crash if restore_stack is set by mistake