[[ Bug 13915 ]] Make sure we do not print if user cancels

Hi Panos, this line is setting the it variable rather than the result- I presume it should be SetTheResultToValue?