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

Hi Ali, yes indeed this line is not needed. I will remove it and update the pull request.