More robust sensor deletes

Some of the legacy sensors in the system don't have the proper synthetic sensors defined. Changing the period of the sensor or some other attributes would cause the system to try to delete sensors that didn't exist. This checks that sensors exist before trying to create a list of sensors to delete.
as discussed.