WPF: Fix null reference exception in touch event handlers when controller is not set