Fixed issue #9419: Unable to delete survey