Fix #21202: Prevent swallowing fatal DB errors in atomic blocks

See ticket at https://code.djangoproject.com/ticket/21202