Fixed #21029 -- schema editors abort on exception

It's missing tests and there might be a better way to do this, see [the ticket][1].

[1]: https://code.djangoproject.com/ticket/21029#ticket