Fix not reporting an error message when saving a document fails.