It used to raise "DatabaseError: no such savepoint" with the old transaction management. Closes #15117.