Fixed a bug that caused an error if trying to take a deleted survey