Issue #3302292 by jurgenhaas, rkoller: Do not show success message when trying to save a model that contains errors