Treaties can be violated at any time. What happened to the Versailles treaty which ended WW1? Yeah. Nobody cares.
When the war ends, says Stoltenburg. There's your answer. 'When the war ends'.. there may be no Ukraine after the war ends! So is Stolty just making consoling noises, or is he being deliberately dumb?