Fix #2035 "Debug logging control causes one test to fail"

- logging control tree was retrieving external value and causing it to stick
- clearing external value upon non-relevance is the correct thing to do anyway
- also don't call getExternalValue when the control is non-relevant in the first place