You shouldn't use foil tape on thermostat probes for this very reason. A small amount of hot glue or maybe even electrical tape would be a much better choice.