Don't notify the format changed if the output creation failed. Regression from 0abed255 Fixes #25387
mentioned in issue #25387 (closed)