[WPF] Add missing null check

TargetScrollViewer is not set when used in a custom scroll view.