Fixed issue #7718: Cancelling the delete survey operation leads to error